{extend name="base" /}

{block name="body"}
{php}use constant\Ota as OtaType;{/php}

<section class="content-header">
  <h1>
    微信接口参数配置
    <small>系统 配置</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">微信接口参数配置</li>
  </ol>
</section>

<section class="content">
  <!-- 筛选框 -->
  <div class="box box-info">
    <div class="box-header with-border">
    <h3 class="box-title"><a href="https://mp.weixin.qq.com/" target="_blank">微信公众平台</a></h3>
    </div>

    <form class="form-horizontal" method="post" id="search-form">
      <div class="box-body">
      <input type="hidden" name="id" value="{$id}">

        <div class="form-group">
          <label for="inputEmail3" class="col-sm-2 control-label">URL(服务器地址)</label>
          <div class="col-sm-10">
            <input type="text" value="{:url('@wechat/api','',true,true)}" readonly="readonly" class="form-control" placeholder="请输入服务器地址">
          </div>
          <span class="col-md-2"></span>
          <span class="col-md-8">复制填写在公众号平台 [ 开发 >> 基本配置 ] 中 [ URL ( 服务器地址 ) ]！本地开发：XXX.ittun.com/wechat/api.html</span>
        </div>

        <div class="form-group">
          <label for="input3" class="col-sm-2 control-label">AppID(应用ID)</label>
          <div class="col-sm-10">
            <input type="text" name="wechat_appid" value="{$info.wechat_appid}" class="form-control" placeholder="请输入以wx开头的18位公众号APPID（必填）">
          </div>
          <span class="col-md-2"></span>
          <span class="col-md-8">公众号应用ID是所有接口必要参数，可以从公众号平台接口配置页面获取到。</span>
        </div>

        <div class="form-group">
          <label for="input3" class="col-sm-2 control-label">AppSecret(应用密钥)</label>
          <div class="col-sm-10">
            <input type="text" name="wechat_appsecret" value="{$info.wechat_appsecret}" class="form-control" placeholder="请输入32位公众号AppSecret（必填）">
          </div>
          <span class="col-md-2"></span>
          <span class="col-md-8">公众号应用密钥是所有接口必要参数，可以在公众号平台 [ 开发 >> 基本配置 ] 页面授权后获取。</span>
        </div>

        <div class="form-group">
          <label for="input3" class="col-sm-2 control-label">Token(令牌)</label>
          <div class="col-sm-10">
            <input type="text" name="wechat_token" value="{$info.wechat_token}" class="form-control" placeholder="请输入接口Token（必填）">
          </div>
          <span class="col-md-2"></span>
          <span class="col-md-8">公众号平台与系统对接认证Token，请优先填写此参数并保存，然后再在微信公众号平台操作对接。 </span>
        </div>

        <div class="form-group">
          <label for="input3" class="col-sm-2 control-label">EncodingAESKey</label>
          <div class="col-sm-10">
            <input type="text" name="wechat_encodingaeskey" value="{$info.wechat_encodingaeskey}" class="form-control" placeholder="消息加密密钥，若开启了消息加密时填写 （可选）">
          </div>
          <span class="col-md-2"></span>
          <span class="col-md-8">公众号平台接口设置为加密模式，消息加密密钥必需填写并保持与公众号平台一致。 </span>
        </div>

      </div>

      <div class="box-footer">
        <div class="row">
          <div class="col-md-12 text-right">
            <button type="button"  class="btn btn-info submit">修改</button>
          </div>
        </div>
      </div>

    </form>
  </div>




</section>

{/block}

{block name="script"}
<script type="text/javascript" src="__AJS__/system_config/index.js"></script>
{/block}